<template>
  <view class="fixed__bottom" :style="{background: background}">
    <view class="fixed__bottom__black safe" :class="className">
      <slot></slot>
    </view>
  </view>
</template>
<script>
export default {
  name: "fixed__bottom",
  props: {
    className: {
      type: String,
      default: 'default'
    },
    background: {
      type: String,
      default: 'transparent'
    }
  },
}
</script>

<style scoped lang="scss">
.fixed__bottom {
  z-index: 99;
  padding-top: 20rpx;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  &__black {
    width: 100%;
    box-sizing: border-box;

    &.default {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    &.two {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      column-gap: 20rpx;
      padding: 0 32rpx;
    }
  }
}
</style>